$OpenBSD: patch-Makefile_PL,v 1.3 2014/12/17 10:22:47 benoit Exp $
--- Makefile.PL.orig	Fri Apr  4 08:57:54 2014
+++ Makefile.PL	Mon Dec 15 22:07:21 2014
@@ -28,6 +28,7 @@
                            Math::BigInt => 1.9993,
                            XSLoader => 0.02,
                           },
-   'LIBS'              => ['-lgmp'],
+   'LIBS'     => ["$ENV{LDFLAGS} -lgmp"],   # e.g., '-lm' 
+   'INC'      => "$ENV{CPPFLAGS}",
    'SIGN'              => 1,
   );
